package com.wan.net.rpc.message;

import java.util.Arrays;

/**
 * @author wwh
 * @date 2022/6/17 17:53
 */
public class RpcRequest {
    /** 服务名称 */
    private String serviceName;
    /** 参数 */
    private Object[] params;
    /** 临时绑定id */
    private byte tempId;

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public Object[] getParams() {
        return params;
    }

    public void setParams(Object[] params) {
        this.params = params;
    }

    public byte getTempId() {
        return tempId;
    }

    public void setTempId(byte tempId) {
        this.tempId = tempId;
    }

    @Override
    public String toString() {
        return "RpcRequest{" +
                "serviceName='" + serviceName + '\'' +
                ", params=" + Arrays.toString(params) +
                ", tempId=" + tempId +
                '}';
    }
}
